package cnsukidayo.com.gitee.mapper;

import cnsukidayo.com.gitee.model.params.PetQueryPageParam;
import cnsukidayo.com.gitee.model.params.QueryPageParam;
import cnsukidayo.com.gitee.model.pojo.Pet;
import cnsukidayo.com.gitee.model.pojo.PetShelter;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author sukidayo
 * @date 2023/3/13 14:51
 */
@Mapper
@Repository
public interface PetShelterMapper {

    PetShelter queryPetShelterById(int id);

    PetShelter queryPetShelterByName(String accountName);

    void insertPetShelter(PetShelter petShelter);

    List<PetShelter> queryPetShelterWithPage(QueryPageParam queryPageParam);

    List<Pet> queryPetWithPage(PetQueryPageParam petQueryPageParam);

    Integer queryMaxID();
}
